package _2重写;

public class Animal {

	// 属性
	public String name;
	public int age;
	
	// 方法
	public void eat()
	{
		System.out.println(name + "吃东西");
	}
	
	
	public void sleep()
	{
		System.out.println(name + "zzzzzz");
	}
	
	public void sing()
	{
		System.out.println(name + "在唱歌~~~~");
	}
}
